package com.starssea.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class MultiConfigService {

    @Value("${spring.redis.host}")
    private String redisHost;

    @Value("${spring.datasource.url}")
    private String dbUrl;

    public void print() {
        System.out.println("redis.host = " + redisHost + ", db.url = " + dbUrl);
    }
}
